<html DIR="LTR" xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tool="http://www.microsoft.com/tooltip"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=Windows-1252"></META><META NAME="save" CONTENT="history"></META><title>Open Projects from Version Control</title><STYLE TYPE="text/css">
    body
    {
        background:    #FFFFFF;
        color: #000000;
        font-family:    Verdana;
        font-size: medium;
        font-style: normal;
        font-weight: normal;
        margin-top:    0;
        margin-bottom:    0;
        margin-left:    0;
        margin-right:    0;
        width:    100%;
    }
    
    a
    {
        color:    #0000FF;
    }
    
    a:visited
    {
        color:    #0000FF;
    }
    
    a:link
    {
        color:    #0000FF;
    }
    
    a:hover
    {
        color:    #FF0000;
        cursor: hand;
    }
    
    a:active
    {
        color:    #FF0000;
        cursor: hand;
    }
    
    div#mainSection
    {
        font-size: 70%;
        width: 100%;
    }
    
    div#mainBody
    {
        font-size: 90%;
        margin-left:    5;
        margin-top: 10;
        padding-bottom: 20;
    }
    
    div#header
    {
        background-color: #D4DFFF;
        padding-top:    0;
        padding-bottom:    0;
        padding-left:    0;
        padding-right:    0;
        width:    100%;
    }
    
    div#header table
    {
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        width:    100%;
    }
    
    span#runningHeaderText
    {
        color: #003399;
        font-size: 90%;
    }
    
    span#nsrTitle
    {
        color: #003399;
        font-size: 125%;
        font-weight: 600;
    }
    
    div#header table td
    {
        color: #0000FF;
        font-size: 70%;
        margin-top:    0;
        margin-bottom:    0;
        padding-right: 20;
    }
    
    div#header table tr#headerTableRow3 td
    {
        padding-bottom: 2;
        padding-top: 5;
    }
    
    div#header table#bottomTable
    {
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        text-align: left;
    }
    
    div#footer
    {
        font-size: 90%;
        margin-top:    0;
        margin-bottom:    0;
        margin-left:    0;
        margin-right:    0;
        padding-top:    2;
        padding-bottom:    2;
        padding-left:    2;
        padding-right:    2;
        width:    100%;
    }
    
    hr#footerHR
    {
        border-bottom-color: #EEEEFF;
        border-bottom-style: solid;
        border-bottom-width: 1;
        border-top-color: C8CDDE;
        border-top-style: solid;
        border-top-width: 1;
        height: 3;
        color: #D4DFFF;
    }
    
    div.section
    {
        padding-top:    2;
        padding-bottom:    2;
        padding-left:    16;
        padding-right:    15;
        width:    100%;
    }
    
    .heading
    {
        font-weight:    bold;
        margin-top:        18;
        margin-bottom:    8;
    }
    
    h1.heading
    {
        color: #003399;
        font-size:    125%;
    }
    
    .subHeading
    {
        font-weight:    bold;
        margin-bottom:    4;
    }
    
    h3.subHeading
    {
        color:  #003399;
        font-size: 115%;
        font-weight: bold;
    }
    
    h4.subHeading
    {
        color: #003399;
        font-size: 105%;
    }
    
    h5.subHeading
    {
        color: #003399;
        font-size: 100%;
    }
    
    img.toggle
    {
    	border: 0;
	margin-right: 5;
    }

    img.copyCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.downloadCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.viewCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.note
    {
	border: 0;
	margin-right: 3;
    }

    img#languageFilterImage
    {
	border: 0;
	margin-left: 10;
	vertical-align: middle;
    }

    img#membersOptionsFilterImage
    {
	border: 0;
	margin-left: 10;
	vertical-align: middle;
    }

    img#toggleAllImage
    {
	margin-left: 4;
	vertical-align: middle;
    }
    
    div#mainSection table
    {
        border: 0;
        font-size: 100%;
        width:    100%;
    }
    
    div#mainSection table th
    {
        background:    #EFEFF7;
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        color: #000066;
        padding-left: 5;
        padding-right: 5;
    }
    
    div#mainSection table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
    }
    
    div#mainSection table td.imageCell
    {
        white-space: nowrap;
    }
    
    div.code table
    {
        border: 0;
        font-size: 95%;
        margin-bottom: 5;
        width: 100%
    }
    
    div.code table th
    {    
        background:    #EFEFF7;
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        color: #000066;
        font-weight: bold;
        padding-left: 5;
        padding-right: 5;
    }
    
    div.code table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
        padding-top: 5;
    }
    
    div.alert table
    {
        border: 0;
        font-size: 100%;
        width:    100%;
    }
    
    div.alert table th
    {
        background:    #EFEFF7;
        border-bottom-width: 0;
        color: #000066;
        padding-left: 5;
        padding-right: 5;
    }
    
    div.alert table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
    }
    
    .copyCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    .downloadCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    .viewCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    div.code pre
    {
        font-family:    Monospace, Courier New, Courier;
        font-size: 105%;
        color:    #000066;
        word-wrap:    break-word;
    }
    
    code
    {
        font-family:    Monospace, Courier New, Courier;
        font-size: 105%;
        color:    #000066;
    }
    
    dl
    {
        margin-top:    0;
        padding-left:    1;
    }
    
    dt
    {
        font-style:    italic;
    }
    
    dd
    {
        margin-bottom:    0;
        margin-left:    0;
    }
    
    ul
    {
        margin-left: 17;
        list-style-type: disc;
    }
    
    ul ul
    {
        margin-bottom: 4;
        margin-left: 17;
        margin-top: 3;
        list-style-type: disc;
    }
    
    ol
    {
        margin-left: 24;
        list-style-type: decimal;
    }
    
    ol ol
    {
        margin-bottom: 4;
        margin-left: 24;
        margin-top: 3;
        list-style-type: lower-alpha;
    }
    
    li
    {
        margin-bottom: 3;
    }
    
    p
    {
        margin-top: 0;
        margin-bottom: 15;
    }
    
    .tip
    {
        color:    #0000FF;
        font-style: italic;
        cursor:hand;
        text-decoration:underline;
    }
    
    .languageFilter
    {
        color:    #0000FF;
        cursor:hand;
        text-decoration:underline;
        padding-bottom:4;
    }
    
    .math
    {
        font-family: Times New Roman;
        font-size: 125%
    }
    
    .sourceCodeList
    {
        font-family: Verdana;
        font-size: 90%;    
    }
    
    pre.viewCode
    {
        width: 100%;
        overflow: auto;
    }
    
    MSHelp\:link
    {
        text-decoration: underline;
        color: #0000ff; 
        hoverColor: #3366ff;
        filterString: ;
    }
</STYLE>
</head>
<body><input type="hidden" id="userDataCache" class="userDataStyle"></input><input type="hidden" id="hiddenScrollOffset"></input><img id="dropDownImage" style="display:none; height:0; width:0;" src="drpdown.gif"><img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="drpdown_orange.gif"><img id="collapseImage" style="display:none; height:0; width:0;" src="collapse.gif"><img id="expandImage" style="display:none; height:0; width:0;" src="exp.gif"><img id="copyImage" style="display:none; height:0; width:0;" src="copycode.gif"><img id="copyHoverImage" style="display:none; height:0; width:0;" src="copycodeHighlight.gif"><div id="header"><table width="100%" id="topTable"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText"></span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">Open Projects from Version Control</span></td></tr><tr id="headerTableRow3"><td></td></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory"></div>
				<p>In Team Foundation
, projects are stored in the Team Foundation version control
 server and are affiliated with a specific team project. The following procedures describe how to import projects into your Eclipse workspace, how to open projects from <b>Source Control Explorer</b>, or how to open version-controlled items from links attached to work items.</p>
				<div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Note </th></tr><tr><td>
					After you open a solution or project in Team Foundation
, you must check out the files associated with the solution before you modify them. For more information, see <a href="getlocalcopy.htm" target="_blank">Getting a Local Copy of Files from the Version Control Server</a>.<p></p>
				</td></tr></table><p></p></div>
				<p>For information about how to import a project into your workspace in <b>Project Explorer</b> or <b>Package Explorer</b>, see <a href="connecttoteamproject.htm#ImportFromTFS">Import an Eclipse Project from Team Foundation Server</a>.</p>
				<div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Note </th></tr><tr><td>
					In Team Explorer Everywhere 2010
, you cannot open a linked source code file. The <b>Open</b> button in a work item remains dimmed if you select a versioned item link.<p></p>
				</td></tr></table><p></p></div>
				<p>
					<b>Required Permissions</b>
				</p>
				<p>To perform these procedures, you must have the <b>Read</b> permission set to <b>Allow</b>. For more information, see <a href="http://go.microsoft.com/fwlink/?LinkID=182567" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Team Foundation Server Permissions</linkText></a> on the Microsoft Web site.</p>
			<a name="OpenFromSCE"></a><h1 class="heading">Opening Files and Projects from Source Control Explorer</h1><div id="sectionSection0" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<p xmlns="">You can get a local copy of any files for which you have a specified a working folder. Getting a local copy of files does not add them to <b>Project Explorer</b> or <b>Package Explorer</b>. You must import projects for them to appear in <b>Project Explorer</b> or <b>Package Explorer</b>.</p>
					<p xmlns="">The following procedures assume that you have an Eclipse workspace that is connected to an instance of Visual Studio Team Foundation Server
. For more information about how to create a workspace and establish that connection, see <a href="connecttoteamproject.htm" target="_blank">Connect to Team Projects</a>.</p>
					<h4 class="subHeading" xmlns="">To import projects from Source Control Explorer</h4><div class="subSection" xmlns=""><ol class="ordered"><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Team Explorer</b>, expand the team project that contains the projects that you want to import and double-click <b>Source Control</b>.</p>
									<p xmlns="">
										<b>Source Control Explorer</b> appears.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the left pane of Source Control Explorer, browse to the folder that contains the projects that you want to import.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the details pane, right-click a project that you want to import, and then click <b>Import</b>. </p>
									<p xmlns="">To import multiple Eclipse projects, highlight each project that you want to import. For Eclipse projects, you must select the folders that contain the .project file. The projects are not imported if you instead specify the parent folder.</p>
									<p xmlns="">To highlight multiple project folders, you can hold down CTRL and then click the folders. You can highlight a range of folders if you hold down SHIFT and then click the first and last folder in the range that you want to import.</p>
									<p xmlns="">The <b>Import Project from Team Foundation Server</b> dialog box appears.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the list of projects, verify that the selected projects are the projects that you want to import.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">(Optional) You can perform any of the following steps:</p>
									<ul xmlns=""><li class="unordered">
											Click the <b>Save</b> button to export the specified Eclipse projects to an XML file.<br /><br />
											You can send that XML file to other users on your team, which might be useful if you must import many Eclipse projects into your workspace.<br /><br />
										</li><li class="unordered">
											Click the <b>Load</b> button to import a list of Eclipse projects from an XML file.<br /><br />
										</li><li class="unordered">
											Select the <b>Add project to Working Set</b> check box if you want to group related Eclipse projects in a container that is called a working set.<br /><br />
											This grouping affects only how Eclipse projects appear, not working folders.<br /><br />
										</li><li class="unordered">
											Select the <b>Show the New Project Wizard for folders that are not Eclipse Projects</b> check box if you want to create an Eclipse project from each of those folders.<br /><br />
											The wizard only appears for selected folders that are not already Eclipse projects.<br /><br />
										</li><li class="unordered">
											Select the <b>Perform a Force Get Latest of files in the selected projects</b> check box if you want to force a download of all items from the server, even if they already exist on the local file system. By default, the most recent versions of files are retrieved if they do not already exist on the local file system. You should only have to select this check box if you already have set working folder mappings for the specified folders in the Team Foundation Server
 workspace, but the local copy is somehow corrupted.<br /><br />
											<div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Note </th></tr><tr><td>
												You can always get the most recent version of your files after you complete the import operation. For more information, see <a href="getlocalcopy.htm" target="_blank">Getting a Local Copy of Files from the Version Control Server</a>.<p></p>
											</td></tr></table><p></p></div>
										</li></ul>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Click <b>Next</b>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">On the <b>Confirmation</b> page, review the projects that you specified to import. If the list is correct, click <b>Finish</b>. If you must make corrections, click <b>Back</b>.</p>
									<p xmlns="">The specified Eclipse projects appear in <b>Project Explorer</b> or <b>Package Explorer</b>.</p>
								</content>
							</li></ol></div>
					<h4 class="subHeading" xmlns="">To get a local copy of files from Source Control Explorer</h4><div class="subSection" xmlns=""><ol class="ordered"><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Team Explorer</b>, expand the team project that contains the files or Eclipse projects that you want to copy locally and double-click <b>Source Control</b>.</p>
									<p xmlns="">
										<b>Source Control Explorer</b> appears.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the left pane of Source Control Explorer, browse to the folder that contains the files or Eclipse projects that you want to import.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the details pane, right-click a project that you want to copy locally, and then click <b>Get Latest Version</b>. You could also get a specific version by clicking <b>Get Specific Version</b>. </p>
									<p xmlns="">To copy multiple projects or files, highlight each file or project that you want to import.</p>
									<p xmlns="">To highlight multiple files or folders, you can hold down CTRL and then click them. You can highlight a range of files or folders if you hold down SHIFT and then click the first and last item in the range that you want to copy.</p>
									<p xmlns="">A progress dialog box appears as the files are copied. When the copy operation is complete, the value of the <b>Latest</b> column updates to <b>Yes</b>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">(Optional) Right-click the file and then click <b>View</b> or right-click a folder and then click <b>View Local Folder</b>.</p>
								</content>
							</li></ol></div>
				</content></div><!--[if gte IE 5]>
			<tool:tip element="languageFilterToolTip" avoidmouse="false"/>
		<![endif]--></div><div id="footer"><hr /><p /></div></div></body></html>